<%@page import = "clothing.database.CustomerManager" %>
<%@ include file = "templates/header.jsp" %>

<%
String iid = request.getParameter("id");
System.out.println(iid);
String firstname= request.getParameter("firstname");

String lastname= request.getParameter("lastname");
String street= request.getParameter("street");
String city = request.getParameter("city");
String state = request.getParameter("state");
String Zip = request.getParameter("zip");
String email = request.getParameter("email");
int zip = Integer.parseInt(Zip);
int id = Integer.parseInt(iid);
CustomerManager cm = new CustomerManager();
cm.updateCustomer(id, firstname, lastname, street, city, state, zip, email);
	

response.sendRedirect("displayCustomer.jsp");
%>
<%@ include file = "templates/footer.jsp" %>